package microcredit.gui.handler;

import microcredit.model.MemberToTrainingType;

public class MemberToTrainingDataHandler extends AbstractHandler<MemberToTrainingType>{

	private MemberToTrainingType saved;
	
	@Override
	public MemberToTrainingType refresh(MemberToTrainingType element)
			throws Throwable {
		return element;
	}
	
	@Override
	public MemberToTrainingType save(MemberToTrainingType entity) throws Throwable {
		this.saved = entity;
		this.saved.validate();
		return this.saved;
	}
	
	public MemberToTrainingType getSaved() {
		return saved;
	}
	
}
